package com.softlab.retailwholesalesystem.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.softlab.retailwholesalesystem.entity.*;
import com.softlab.retailwholesalesystem.entity.VO.StatisticsGoodsVOEntity;

import java.util.List;

public interface IStatisticsService extends IService<StatisticsEntity> {
    void init();

    List<StatisticsGoodsVOEntity> getAll(Wrapper<StatisticsEntity> queryWrapper);

    List<StatisticsGoodsVOEntity> search(StatisticsEntity entity);

    List<Double> getStatusStatistics();

    List<WorkerStatistics> getWorkerStatistics(Average average);

    List<WorkerStatistics> getSomeWorker(SpecificWorker specificWorker);

    WorkerStatistics getSpecificWorker(Average avr, UserEntity user);


    List<GoodsStatistics> getGoodsStatistics();

    List<GoodsStatistics> getSomeGoods(String goodsName);

    GoodsStatistics getSpecificGoods(GoodsEntity goods);

}
